const order = {
  state: {
    tag: ''
  },

  mutations: {
    SET_TAG: (state, tag) => {
      state.tag = tag
    }
  },

  actions: {
    // 注入当前使用tag
    setOrderTag({ commit }, tag) {
      return new Promise((resolve, reject) => {
        commit('SET_TAG', tag)
        resolve()
      })
    }
  }
}

export default order
